Avoid a deprecation warning
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 9 Jun 2016 20:00:13 +0000 (21:00 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 9 Jun 2016 20:00:13 +0000 (21:00 +0100)
Some debugging code in GdkWindow still calls gdk_cairo_create().

gdk/gdkwindow.c

index 01f7838a5025c59dba9ae6ac9a7b8156f0093d2d..8abcddf12ffce1b4217a97e6be1829f47c2ef0a1 100644 (file)
@@ -4246,12 +4246,16 @@ draw_ugly_color (GdkWindow       *window,
 {
   cairo_t *cr;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   cr = gdk_cairo_create (window);
+G_GNUC_END_IGNORE_DEPRECATIONS
+
   /* Draw ugly color all over the newly-invalid region */
   if (color == 0)
     cairo_set_source_rgb (cr, 50000/65535., 10000/65535., 10000/65535.);
   else
     cairo_set_source_rgb (cr, 10000/65535., 50000/65535., 10000/65535.);
+
   gdk_cairo_region (cr, region);
   cairo_fill (cr);